package com.ruoyi.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.domain.Demo;
import com.ruoyi.mapper.DemoMapper;
import com.ruoyi.service.IDemoService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 测试模块 服务层实现
 *
 * @author ruoyi
 * @date 2020-03-18
 */
@Service
@DS("oracle_1")
public class DemoServiceImpl extends ServiceImpl<DemoMapper, Demo> implements IDemoService {

    @Override
    public List<Demo> list1(){
        QueryWrapper<Demo> wrapper = new QueryWrapper();
        List<Demo> list = list(wrapper);
        return list;
    }
}